home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9779 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6d 63 | 68 68 2e 73 69 65 6d 65 |Path: mc|hh.sieme|
|00000010| 6e 73 2e 64 65 21 6e 65 | 77 73 0a 46 72 6f 6d 3a |ns.de!ne|ws.From:|
|00000020| 20 52 6f 6e 61 6c 64 20 | 46 69 73 63 68 65 72 20 | Ronald |Fischer |
|00000030| 3c 72 6f 6e 61 6c 64 2e | 66 69 73 63 68 65 72 40 |<ronald.|fischer@|
|00000040| 75 65 62 65 6d 63 2e 73 | 69 65 6d 65 6e 73 2e 64 |uebemc.s|iemens.d|
|00000050| 65 3e 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 63 |e>.Newsg|roups: c|
|00000060| 6f 6d 70 2e 6c 61 6e 67 | 2e 63 0a 53 75 62 6a 65 |omp.lang|.c.Subje|
|00000070| 63 74 3a 20 52 65 3a 20 | 48 65 6c 70 20 21 21 21 |ct: Re: |Help !!!|
|00000080| 21 21 20 6f 6e 20 27 73 | 74 72 73 74 72 22 0a 44 |!! on 's|trstr".D|
|00000090| 61 74 65 3a 20 31 33 20 | 4d 61 72 20 31 39 39 36 |ate: 13 |Mar 1996|
|000000a0| 20 31 32 3a 31 32 3a 34 | 38 20 47 4d 54 0a 4f 72 | 12:12:4|8 GMT.Or|
|000000b0| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 53 69 65 6d |ganizati|on: Siem|
|000000c0| 65 6e 73 20 41 47 2c 28 | 48 6f 66 6d 61 6e 6e 73 |ens AG,(|Hofmanns|
|000000d0| 74 72 29 20 20 4d 75 6e | 69 63 68 2d 47 65 72 6d |tr) Mun|ich-Germ|
|000000e0| 61 6e 79 2d 45 75 72 6f | 70 65 2e 0a 4d 65 73 73 |any-Euro|pe..Mess|
|000000f0| 61 67 65 2d 49 44 3a 20 | 3c 34 69 36 65 34 30 24 |age-ID: |<4i6e40$|
|00000100| 64 68 34 40 6d 6f 6f 64 | 79 2e 6d 63 68 68 2e 73 |dh4@mood|y.mchh.s|
|00000110| 69 65 6d 65 6e 73 2e 64 | 65 3e 0a 52 65 66 65 72 |iemens.d|e>.Refer|
|00000120| 65 6e 63 65 73 3a 20 3c | 33 31 34 37 30 33 46 46 |ences: <|314703FF|
|00000130| 2e 34 30 34 35 40 6d 73 | 6d 61 69 6c 2e 73 74 2e |.4045@ms|mail.st.|
|00000140| 73 74 65 6d 73 2e 63 6f | 6d 3e 0a 4e 4e 54 50 2d |stems.co|m>.NNTP-|
|00000150| 50 6f 73 74 69 6e 67 2d | 48 6f 73 74 3a 20 74 68 |Posting-|Host: th|
|00000160| 65 6d 73 65 2e 6d 63 68 | 68 2e 73 69 65 6d 65 6e |emse.mch|h.siemen|
|00000170| 73 2e 64 65 0a 4d 69 6d | 65 2d 56 65 72 73 69 6f |s.de.Mim|e-Versio|
|00000180| 6e 3a 20 31 2e 30 0a 43 | 6f 6e 74 65 6e 74 2d 54 |n: 1.0.C|ontent-T|
|00000190| 79 70 65 3a 20 74 65 78 | 74 2f 70 6c 61 69 6e 3b |ype: tex|t/plain;|
|000001a0| 20 63 68 61 72 73 65 74 | 3d 75 73 2d 61 73 63 69 | charset|=us-asci|
|000001b0| 69 0a 43 6f 6e 74 65 6e | 74 2d 54 72 61 6e 73 66 |i.Conten|t-Transf|
|000001c0| 65 72 2d 45 6e 63 6f 64 | 69 6e 67 3a 20 37 62 69 |er-Encod|ing: 7bi|
|000001d0| 74 0a 58 2d 4d 61 69 6c | 65 72 3a 20 4d 6f 7a 69 |t.X-Mail|er: Mozi|
|000001e0| 6c 6c 61 20 31 2e 31 4e | 20 28 58 31 31 3b 20 49 |lla 1.1N| (X11; I|
|000001f0| 3b 20 53 75 6e 4f 53 20 | 35 2e 33 20 73 75 6e 34 |; SunOS |5.3 sun4|
|00000200| 6d 29 0a 54 6f 3a 20 4b | 69 6d 5f 48 61 69 2e 4e |m).To: K|im_Hai.N|
|00000210| 67 40 6d 73 6d 61 69 6c | 2e 73 74 2e 73 74 65 6d |g@msmail|.st.stem|
|00000220| 73 2e 63 6f 6d 0a 58 2d | 55 52 4c 3a 20 6e 65 77 |s.com.X-|URL: new|
|00000230| 73 3a 33 31 34 37 30 33 | 46 46 2e 34 30 34 35 40 |s:314703|FF.4045@|
|00000240| 6d 73 6d 61 69 6c 2e 73 | 74 2e 73 74 65 6d 73 2e |msmail.s|t.stems.|
|00000250| 63 6f 6d 0a 0a 6b 69 6d | 20 68 61 69 20 3c 4b 69 |com..kim| hai <Ki|
|00000260| 6d 5f 48 61 69 2e 4e 67 | 40 6d 73 6d 61 69 6c 2e |m_Hai.Ng|@msmail.|
|00000270| 73 74 2e 73 74 65 6d 73 | 2e 63 6f 6d 3e 20 77 72 |st.stems|.com> wr|
|00000280| 6f 74 65 3a 0a 3e 48 65 | 6c 70 20 21 21 21 21 21 |ote:.>He|lp !!!!!|
|00000290| 0a 3e 0a 3e 50 72 6f 62 | 6c 65 6d 20 3a 0a 3e 09 |.>.>Prob|lem :.>.|
|000002a0| 49 20 6e 65 65 64 20 74 | 6f 20 6c 6f 63 61 74 65 |I need t|o locate|
|000002b0| 20 61 20 73 74 72 69 6e | 67 20 77 69 74 68 69 6e | a strin|g within|
|000002c0| 20 61 6e 6f 74 68 65 72 | 20 73 74 72 69 6e 67 2c | another| string,|
|000002d0| 20 61 6e 64 20 74 68 65 | 20 70 72 6f 63 65 73 73 | and the| process|
|000002e0| 20 0a 3e 6d 75 73 74 20 | 62 65 20 63 61 73 65 20 | .>must |be case |
|000002f0| 69 6e 73 65 6e 73 69 74 | 69 76 65 2e 20 41 73 20 |insensit|ive. As |
|00000300| 66 61 72 20 61 73 20 49 | 20 6b 6e 6f 77 2c 20 73 |far as I| know, s|
|00000310| 74 72 73 74 72 28 29 20 | 6f 6e 6c 79 20 6c 6f 63 |trstr() |only loc|
|00000320| 61 74 65 73 20 74 68 65 | 20 0a 3e 65 78 61 63 74 |ates the| .>exact|
|00000330| 20 6d 61 74 63 68 20 61 | 6e 64 20 69 73 20 63 61 | match a|nd is ca|
|00000340| 73 65 20 73 65 6e 73 69 | 74 69 76 65 2e 0a 3e 09 |se sensi|tive..>.|
|00000350| 44 6f 65 73 20 61 6e 79 | 6f 6e 65 20 6b 6f 6e 77 |Does any|one konw|
|00000360| 20 6f 66 20 61 6e 79 20 | 66 75 6e 63 74 69 6f 6e | of any |function|
|00000370| 73 20 74 68 61 74 20 63 | 6f 75 6c 64 20 61 6c 6c |s that c|ould all|
|00000380| 6f 77 20 6d 65 20 74 6f | 20 6c 6f 63 61 74 65 20 |ow me to| locate |
|00000390| 0a 3e 73 75 62 73 74 72 | 69 6e 67 73 20 61 6e 64 |.>substr|ings and|
|000003a0| 20 69 73 20 63 61 73 65 | 20 69 6e 73 65 6e 73 69 | is case| insensi|
|000003b0| 74 69 76 65 20 3f 0a 3e | 0a 3e 45 67 2e 0a 3e 63 |tive ?.>|.>Eg..>c|
|000003c0| 61 73 65 20 31 3a 0a 3e | 09 73 74 72 69 6e 67 31 |ase 1:.>|.string1|
|000003d0| 20 3d 20 22 61 62 63 22 | 0a 3e 09 73 74 72 69 6e | = "abc"|.>.strin|
|000003e0| 67 32 20 3d 20 22 61 62 | 63 64 65 66 22 20 0a 3e |g2 = "ab|cdef" .>|
|000003f0| 63 61 73 65 20 32 3a 0a | 3e 09 73 74 72 69 6e 67 |case 2:.|>.string|
|00000400| 32 20 3d 20 22 41 62 63 | 64 65 66 22 0a 3e 63 61 |2 = "Abc|def".>ca|
|00000410| 73 65 20 33 3a 0a 3e 09 | 73 74 72 69 6e 67 33 20 |se 3:.>.|string3 |
|00000420| 3d 20 22 61 42 63 64 65 | 66 22 0a 3e 63 61 73 65 |= "aBcde|f".>case|
|00000430| 20 34 3a 0a 3e 09 73 74 | 72 69 6e 67 34 20 3d 20 | 4:.>.st|ring4 = |
|00000440| 22 61 62 43 64 65 66 22 | 0a 3e 2e 2e 2e 0a 3e 2e |"abCdef"|.>....>.|
|00000450| 2e 0a 3e 2e 0a 3e 0a 3e | 49 73 20 74 61 6b 69 6e |..>..>.>|Is takin|
|00000460| 67 20 63 61 72 65 20 6f | 66 20 61 6c 6c 20 74 68 |g care o|f all th|
|00000470| 65 20 63 6f 6d 62 69 6e | 61 74 69 6f 6e 73 20 28 |e combin|ations (|
|00000480| 20 3d 20 38 29 20 69 6e | 20 73 74 72 69 6e 67 31 | = 8) in| string1|
|00000490| 20 74 68 65 20 6f 6e 6c | 79 20 0a 3e 73 6f 6c 75 | the onl|y .>solu|
|000004a0| 74 69 6f 6e 20 3f 20 49 | 27 6d 20 77 6f 72 6b 69 |tion ? I|'m worki|
|000004b0| 6e 67 20 6f 6e 20 55 6e | 69 78 20 70 6c 61 74 66 |ng on Un|ix platf|
|000004c0| 6f 72 6d 2e 0a 3e 0a 3e | 54 68 61 6e 6b 78 0a 3e |orm..>.>|Thankx.>|
|000004d0| 0a 3e 3c 68 61 69 3e 0a | 0a 49 20 64 6f 6e 27 74 |.><hai>.|.I don't|
|000004e0| 20 6b 6e 6f 77 20 61 6e | 20 49 53 4f 20 43 20 66 | know an| ISO C f|
|000004f0| 75 6e 63 74 69 6f 6e 20 | 70 65 72 66 6f 72 6d 69 |unction |performi|
|00000500| 6e 67 20 79 6f 75 72 20 | 74 61 73 6b 2c 20 62 75 |ng your |task, bu|
|00000510| 74 20 6d 6f 73 74 20 69 | 6d 70 6c 65 6d 65 6e 74 |t most i|mplement|
|00000520| 61 74 69 6f 6e 73 0a 6f | 66 66 65 72 20 61 20 66 |ations.o|ffer a f|
|00000530| 75 6e 63 74 69 6f 6e 20 | 72 65 67 63 6d 70 20 77 |unction |regcmp w|
|00000540| 68 69 63 68 20 64 6f 65 | 73 20 74 68 69 73 20 6a |hich doe|s this j|
|00000550| 6f 62 20 28 6d 61 79 62 | 65 20 69 74 20 69 73 20 |ob (mayb|e it is |
|00000560| 50 6f 73 69 78 20 2e 2e | 2e 20 64 6f 6e 27 74 20 |Posix ..|. don't |
|00000570| 6b 6e 6f 77 29 2e 0a 0a | 52 6f 6e 61 6c 64 0a 0a |know)...|Ronald..|
+--------+-------------------------+-------------------------+--------+--------+